<?php


	start_form_tag('doSavePerformaInvoice/');


label('Customer', 'Name');
foreach($this->all_customers as $customer) { $opts_arr['0' . $customer->id] = $customer->user->full_name() . ' - ' . $customer->user->company_name; }
select_tag('customer_id', options_for_select($opts_arr));
echo '<br />OR<br />';
echo link_to('Create New Customer', array('controller' => 'staff', 'action' => 'newCustomer'));


echo '<br />-------------------------------------------------<br />';
echo 'Address to:<br />';

radio_button_tag('address_to', 'customer', true); echo 'Customer', '<br />';
radio_button_tag('address_to', 'field'); echo 'this following person', '<br />';
	text_field_tag('addressee_field'); echo '<br />';
	check_box_tag('showattncust', true); echo 'With attention customer name', '<br />';

	label_tag('deposit');
	text_field_tag('deposit', '70', array('size' => '4', 'maxlength' => '4')); echo ' %<br />';
	label_tag('delivery-time');
	text_field_tag('delivery_time', '2-4', array('size' => '4', 'maxlength' => '3')); echo ' Weeks<br />';
	label_tag('payment-description');
	//make text area
	text_area_tag('payment_description', 'All prices are quoted in Jamaican Dollars (JMD)', array('size' => '30x5',));
	echo '<br />';

	submit_tag("Save Performa");

	echo link_to("Back", array("action" => "showCart"));

	end_form_tag();


?>